<div class="zs-body" data-ng-init="formInit('gzprojectinfo', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzprojectinfo');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">项目管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">项目成果</a>
        </div>
        <div class="option">
            <!--<input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzprojectinfo') && openWindow('edit');"/>-->
            <input type="button" class="zs-btn orange" value="成果上传" 
                ng-click="editRow('gzprojectinfo', gzprojectinfo.sRows[0]) && openWindow('edit')"/>
            <!--<input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzprojectinfo')"/>-->
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gzprojectinfo.queryObject['sxmmc:like']"/>
                </span>
            	
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目负责人" ng-model="gzprojectinfo.queryObject['sxmjlname:like']"/>
                </span>
                <span>项目状态</span>
                <span class="search-warpper">
                    <i class="icon"></i>
                   <!-- <input type="text" class="zs-input" placeholder="项目状态" ng-model="gzprojectinfo.queryObject['sxmzt']"/>-->
                   <ag-Combobox style="width:200px;height:28px;"
                        para="{	uDictionary:true,
                        		editable:true,
                        		dictionary:'PRO_XMZT'}"
                        ng-model="gzprojectinfo.queryObject['sxmzt:=']"
                        text-Value="o"/>
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzprojectinfo')"/>
                <!--<a class="ope-1" ng-click="loadData('gzprojectinfo')"></a>
                <a class="ope-2"></a>-->
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzprojectinfo','allCheckbox');" />
                                    </th>
									<th>项目名称</th>
									<th>项目编号</th>
									<th>项目申请人</th>
									<th>项目负责人</th>
									<th>项目时间</th>
									<th>项目状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzprojectinfo.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzprojectinfo',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  项目名称 -->
            						<td>
                                        <a ng-click="editRow('gzprojectinfo',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmmc"></label>
                                        </a>
                                   </td>
									
									<!--  项目编号 -->
            						<td>
                                        <a ng-click="editRow('gzprojectinfo',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmbh"></label>
                                        </a>
                                   </td>
								
									<td>
									     <a ng-click="editRow('gzprojectinfo',r) && openWindow('edit');">
									         <label>{{r.sqr}}({{r.sqbmName}})</label>
									     </a>
									</td>
																	
									<!--  项目经理 -->
									<td>
									     <a ng-click="editRow('gzprojectinfo',r) && openWindow('edit');">
									         <label ng-bind="r.sxmjlname"></label>
									     </a>
									</td>
									
									<td>
									     <a ng-click="editRow('gzprojectinfo',r) && openWindow('edit');">
									        <label>
												<b>申请:</b>{{r.sqsj | asDate | date:'yyyy-MM-dd'}}&nbsp;
												<b>结项:</b>{{r.jxsj | asDate | date:'yyyy-MM-dd'}}
											</label>
									     </a>
									</td>
									
									<!--  项目状态 -->
            						<td>
                                        <a ng-click="editRow('gzprojectinfo',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmztname"></label>
                                        </a>
                                  </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzprojectinfo'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="项目成果上传" width='860px' height='620px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<tr>
          						<td class="text" width="20%"><font color="red">*</font>项目编号</td>
                                <td class="left" width="30%" >
                                	
                                	<label ng-bind="gzprojectinfo.editRow.sxmbh"></label>
                                </td>
                                
                                <td class="text" width="20%"><font color="red">*</font>项目名称</td>
                                <td class="left" width="30%">
                                	
                                		
                                	<label ng-bind="gzprojectinfo.editRow.sxmmc"></label>
                                </td>
                            </tr>
                            
                            <tr>
                 
                                <td class="text" width="20%"><font color="red">*</font>项目内容</td>
                                <td class="left" width="30%" colspan="3">
                                	<textarea type="text" style="height:200px;width:100%" 
                                		ng-model="gzprojectinfo.editRow.sxmnr" readonly="true"
                                		class="zs-input"></textarea>
                                </td>
                            </tr>
                            
          					<tr>
                 
                                <td class="text" width="20%">结项时间</td>
                                <td class="left" width="30%">
                                	
                                	<label ng-bind="gzprojectinfo.editRow.jxsj | asDate | date:'yyyy-MM-dd'"></label>
                                </td>
                                
                                <td class="text" width="20%"><font color="red">*</font>项目负责人</td>
                                <td class="left" width="30%">
                                	
									<label ng-bind="gzprojectinfo.editRow.sxmjlname"></label>
                                	
                                </td>
                           </tr>
                        </tbody>
                        <table width="100%">
							<tr>
								<td colspan="5"  class="left">
									<input type="button" class="zs-btn"
									ng-click="addXmcg(gzprojectinfo.editRow,'xmcg');"
									value="添加附件" /> 
									<input type="button" class="zs-btn"
									ng-click="delLocalRows(gzprojectinfo.editRow.xmcg)"
									value="删除">
								</td>
							</tr>
							<tr>
								<td style="text-align: center" class="text" width="5%">
								<input id="allCheckbox" type="checkbox" 
                                        ng-click="selectAll('gzprojectinfo.editRow.xmcg','allCheckbox');" /></td>
								<td width="20%" class="text" style="text-align: center">附件名称</td>
								<td width="20%" class="text" style="text-align: center">上传用户</td>
								<td width="20%" class="text" style="text-align: center">上传时间</td>
								<td width="20%" class="text" style="text-align: center">备注 </td>
								<td width="20%" class="text" style="text-align: center">操作</td>
							</tr>
							<tr ng-repeat="r in gzprojectinfo.editRow.xmcg">
								<td class="center" >
									<input type="checkbox" 
                                        ng-click="selectRow('gzprojectinfo.editRow.xmcg',r);"
                                        ng-model="r.selected" /></td>
								<td><span>
										<input type="text" style="width: 95%" 
										class="zs-input" ng-model="r.fjmc" required />
									</span>
									
								</td>
								<td>
										<label ng-bind="r.scrymc"></label>
								</td>
								<td><label ng-bind="r.scsj | asDate | date:'yyyy-MM-dd'" ></label>
								</td>
								<td><span>
										<input type="text" style="width: 95%"
										class="zs-input" ng-model="r.bz" /></span>
								</td>
								
								<td>
									 <ag-Upload ng-model="r.fjbh" para="{}"></ag-Upload>
								</td>
							</tr>
						</table>
						<table>
							<tr>
	                           <td class="center">
	                                <input type="button" name="ok" value="保存" class="zs-btn c-red"
	                                    ng-click="formValidate(form) && save('gzprojectinfo', gzprojectinfo.editRow, closeWindow('edit'))"/>
	                                <input type="button" name="ok" value="取消" class="zs-btn c-green" 
	                                    ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                    	</table>
                </form>
            </div>
        </div>
    </div>
</div>